package com.yangziqiang.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yangziqiang.common.MsgResult;
import com.yangziqiang.entity.User;
import com.yangziqiang.service.IUserService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author BenjaminYang
 * @since 2022-02-10
 */
@RestController
@RequestMapping("/yangziqiang/user")
public class UserController {

    @Autowired
    IUserService iUserService;

    @GetMapping("login")
    public MsgResult login(@RequestBody User user) {
        if (StringUtils.isNotBlank(user.getUname())) {
            return MsgResult.fail(300, "用户名密码不能为空！", user);
        }
        QueryWrapper<User> queryWrapper = new QueryWrapper<>();
        

        return MsgResult.succeed();
    }
}
